import { createApp } from 'vue'
import App from './App.vue'

const app = createApp(App)

// vue-route
import router from './router'
app.use(router)

// pinia
import { createPinia } from 'pinia'
const pinia = createPinia()
app.use(pinia)

// 全局变量
import { _window } from './global'
_window.init(router)

// 自定命令注册
import { OwnDirective } from './utils/directive'
new OwnDirective(app)

// 全局样式引入
import '@/style/base.scss'
import 'element-plus/dist/index.css'

// 引入svg
import 'virtual:svg-icons-register'

app.mount('#app')
